﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="CreateEvent.aspx.cs" Inherits="EARS.CreateEvent" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
        Create Event</h2>
    <br />
    <asp:Label ID="lblEventName" runat="server" Text="Name of Event:"></asp:Label>
    &nbsp;<asp:TextBox ID="txtEventName" runat="server" Class="textbox"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEventName"
        Display="Dynamic" ErrorMessage="Enter name of event" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblStartDate" runat="server" Text="Event Start Date:"></asp:Label>
    &nbsp;<asp:TextBox ID="txtStartDate" runat="server" Class="textbox"></asp:TextBox>
    <asp:CalendarExtender ID="txtStartDate_CalendarExtender" runat="server" TargetControlID="txtStartDate" Format="d/M/yyyy">
    </asp:CalendarExtender>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtStartDate"
        Display="Dynamic" ErrorMessage="Select event start date" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblEndData0" runat="server" Text="Event End Date:"></asp:Label>
    &nbsp;
    <asp:TextBox ID="txtEndDate" runat="server" Class="textbox"></asp:TextBox>
    <asp:CalendarExtender ID="txtEndDate_CalendarExtender" runat="server" TargetControlID="txtEndDate" Format="d/M/yyyy">
    </asp:CalendarExtender>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEndDate"
        Display="Dynamic" ErrorMessage="Select event end date" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblStartTime" runat="server" Text="Event Start Time:"></asp:Label>
    &nbsp;<asp:DropDownList ID="ddlStartTime" runat="server" Class="ddl">
        <asp:ListItem Value="8:00">8:00 AM</asp:ListItem>
        <asp:ListItem Value="9:00">9:00 AM</asp:ListItem>
        <asp:ListItem Value="10:00">10:00 AM</asp:ListItem>
        <asp:ListItem Value="11:00">11:00 AM</asp:ListItem>
        <asp:ListItem Value="00:00">12:00 PM</asp:ListItem>
        <asp:ListItem Value="13:00">1:00 PM</asp:ListItem>
        <asp:ListItem Value="14:00">2:00 PM</asp:ListItem>
        <asp:ListItem Value="15:00">3:00 PM</asp:ListItem>
        <asp:ListItem Value="16:00">4:00 PM</asp:ListItem>
        <asp:ListItem Value="17:00">5:00 PM</asp:ListItem>
        <asp:ListItem Value="18:00">6:00 PM</asp:ListItem>
        <asp:ListItem Value="19:00">7:00 PM</asp:ListItem>
        <asp:ListItem Value="20:00">8:00 PM</asp:ListItem>
    </asp:DropDownList>
    <br />
    <br />
    <asp:Label ID="lblEndTime" runat="server" Text="Event End Time:"></asp:Label>
    &nbsp;
    <asp:DropDownList ID="ddlEndTime" runat="server" Class="ddl">
        <asp:ListItem Value="9:00">9:00 AM</asp:ListItem>
        <asp:ListItem Value="10:00">10:00 AM</asp:ListItem>
        <asp:ListItem Value="11:00">11:00 AM</asp:ListItem>
        <asp:ListItem Value="12:00">12:00 PM</asp:ListItem>
        <asp:ListItem Value="13:00">1:00 PM</asp:ListItem>
        <asp:ListItem Value="14:00">2:00 PM</asp:ListItem>
        <asp:ListItem Value="15:00">3:00 PM</asp:ListItem>
        <asp:ListItem Value="16:00">4:00 PM</asp:ListItem>
        <asp:ListItem Value="17:00">5:00 PM</asp:ListItem>
        <asp:ListItem Value="18:00">6:00 PM</asp:ListItem>
        <asp:ListItem Value="19:00">7:00 PM</asp:ListItem>
        <asp:ListItem Value="20:00">8:00 PM</asp:ListItem>
        <asp:ListItem Value="21:00">9:00 PM</asp:ListItem>
    </asp:DropDownList>
    <br />
    <br />
    <asp:Label ID="lblVenue" runat="server" Text="Venue:"></asp:Label>
    &nbsp;
    <asp:DropDownList ID="ddlVenue" runat="server" Class="ddl">
        <asp:ListItem>Library</asp:ListItem>
        <asp:ListItem>Track &amp; Field Stadium</asp:ListItem>
        <asp:ListItem>Basketball Court</asp:ListItem>
        <asp:ListItem>Swimming Pool</asp:ListItem>
        <asp:ListItem>Squash Court</asp:ListItem>
        <asp:ListItem>Netball Court</asp:ListItem>
        <asp:ListItem>Tennis Court</asp:ListItem>
        <asp:ListItem>Street Soccer Court</asp:ListItem>
        <asp:ListItem>Multi-Purpose Studio</asp:ListItem>
        <asp:ListItem>Band Studio</asp:ListItem>
        <asp:ListItem>Dance Studio</asp:ListItem>
        <asp:ListItem Value="ARTSpace">ARTSpace (Rehersal/Meeting/Exhibition Space)</asp:ListItem>
        <asp:ListItem Value="Auditoria 1">Auditoria 1 (570)</asp:ListItem>
        <asp:ListItem Value="Auditoria 2">Auditoria 2 (250 Seats)</asp:ListItem>
    </asp:DropDownList>
    <br />
    <br />
    <asp:Label ID="lblDescription" runat="server" Text="Description \ Event Info:"></asp:Label>
    <br />
    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Class="textbox2"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtDescription"
        Display="Dynamic" ErrorMessage="Enter event description" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblLimit" runat="server" Text="Maximum Number of Participant:"></asp:Label>
    &nbsp;<asp:TextBox ID="txtLimit" runat="server" Class="textbox"></asp:TextBox>
    &nbsp;<asp:RadioButton ID="rbtnCheck" runat="server" OnCheckedChanged="rbtnCheck_CheckedChanged"
        Text="None" />
    <br />
    <br />
    <asp:Label ID="lblDeadline" runat="server" Text="Deadline for Registration:"></asp:Label>
    &nbsp;<asp:TextBox ID="txtDeadline" runat="server" Class="textbox"></asp:TextBox>
    <asp:CalendarExtender ID="txtDeadline_CalendarExtender" runat="server" TargetControlID="txtDeadline" Format="d/M/yyyy">
    </asp:CalendarExtender>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtDeadline"
        Display="Dynamic" ErrorMessage="Select deadline for registration" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="lblMember" runat="server" Text="Exclusive Event For Student / Lecturer:"></asp:Label>
    <br />
    <asp:RadioButtonList ID="rbnlExclusiveRole" runat="server" RepeatDirection="Horizontal">
        <asp:ListItem>Student</asp:ListItem>
        <asp:ListItem>Lecturer</asp:ListItem>
        <asp:ListItem>All</asp:ListItem>
    </asp:RadioButtonList>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="rbnlExclusiveRole"
        Display="Dynamic" ErrorMessage="Select a field" ForeColor="Red"></asp:RequiredFieldValidator>
    &nbsp;<br />
    <asp:Label ID="lblYear" runat="server" Text="Exclusive Event For Which Year of Study:"></asp:Label>
    <asp:RadioButtonList ID="rbnlExclusiveYear" runat="server" RepeatDirection="Horizontal">
        <asp:ListItem>Freshmen</asp:ListItem>
        <asp:ListItem>Junior</asp:ListItem>
        <asp:ListItem>Senior</asp:ListItem>
        <asp:ListItem>All</asp:ListItem>
    </asp:RadioButtonList>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="rbnlExclusiveYear"
        Display="Dynamic" ErrorMessage="Select a field" ForeColor="Red"></asp:RequiredFieldValidator>
    <br />
    <asp:Label ID="lblCourse" runat="server" Text="Exclusive to Which Course:"></asp:Label>
    &nbsp;<asp:DropDownList ID="ddlCourse" runat="server" Class="ddl">
        <asp:ListItem>None</asp:ListItem>
        <asp:ListItem>Applied Science</asp:ListItem>
        <asp:ListItem>Business</asp:ListItem>
        <asp:ListItem>Design</asp:ListItem>
        <asp:ListItem>Engineering</asp:ListItem>
        <asp:ListItem>Humanities &amp; Social Studies</asp:ListItem>
        <asp:ListItem>Information Technology</asp:ListItem>
    </asp:DropDownList>
    &nbsp;<div style="text-align: right">
        <asp:Button ID="btnCancel" runat="server" Text="Cancel" Class="button" OnClick="btnCancel_Click"
            CausesValidation="False" />
        <asp:Button ID="btnCreate" runat="server" OnClick="btnCreate_Click" Text="Create Event"
            Class="button" />
    </div>
    <asp:Panel ID="ModalPanel" runat="server" Width="500px" BackColor="#E7E3CE" BorderColor="#573D26"
        BorderWidth="3px">
        <div style="text-align: center">
            <asp:Label ID="lblPopUp" runat="server"></asp:Label>
        </div>
        <br />
        <div style="text-align: center">
            <asp:Button ID="btnClose" runat="server" Text="Close" Class="button" CausesValidation="False"
                OnClick="btnClose_Click" />
        </div>
    </asp:Panel>
    <asp:ModalPopupExtender ID="mpe" runat="server" TargetControlID="button" PopupControlID="ModalPanel"
        BackgroundCssClass="modalBackground" />
    <asp:ScriptManager ID="asm" runat="server" />
    <asp:Button ID="button" runat="server" Text="Button" class="hidden"/>
</asp:Content>
